Spring MVC: Designing Real-World Web Applications by Kunjumohamed Shameer & Sattari Hamidreza & Bretet Alex & Warin Geoffroy

Spring MVC: Designing Real-World Web Applications by Kunjumohamed Shameer & Sattari Hamidreza & Bretet Alex & Warin Geoffroy

Author:Kunjumohamed, Shameer & Sattari, Hamidreza & Bretet, Alex & Warin, Geoffroy
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2016-11-11T05:00:00+00:00


BasicAuthenticationFilter

To implement our Basic authentication, we have added BasicAuthenticationFilter to our filter chain. This BasicAuthenticationFilter (org.sfw.security.web.authentication.www.BasicAuthenticationFilter) requires an authenticationManager and optionally an authenticationEntryPoint.

The optional configuration of an authenticationEntryPoint drives the filter towards two different behaviours presented next.

Both starts the same way: the filter is triggered from its position in the chain. It looks for the authentication header in the request and delegates to the authenticationManager, which then relies on the UserDetailsService implementation to compare it with the user credentials from the database.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.